#ifndef YUVSPEC_H
#define YUVSPEC_H

extern "C" {

    #include <libavutil/avutil.h>
    #include <libavutil/imgutils.h>
}

class YUVSpec
{
private:
    int _width;
    int _height;
    int _fps;
    AVPixelFormat _format;
    int _imageSize;
public:
    YUVSpec();
    YUVSpec(int width,int height,int fps,AVPixelFormat format);

    int getWidth() const;
    int getHeight() const;
    int getFPS() const;
    int getImageSize() const;

    void setWidth(int width);
    void setHeight(int height);
    void setFPS(int fps);

    void setFormat(AVPixelFormat format);

    void reCalImageSize();
};

#endif // YUVSPEC_H
